/**
 * <copyright>
 * </copyright>
 *

 */
package org.eclipse.gittab.gitTabDsl;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Guitar Sound</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see org.eclipse.gittab.gitTabDsl.GitTabDslPackage#getGuitarSound()
 * @model
 * @generated
 */
public enum GuitarSound implements Enumerator
{
  /**
   * The '<em><b>NYLON ACOUSTIC</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #NYLON_ACOUSTIC_VALUE
   * @generated
   * @ordered
   */
  NYLON_ACOUSTIC(0, "NYLON_ACOUSTIC", "Nylon"),

  /**
   * The '<em><b>STEEL ACOUSTIC</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #STEEL_ACOUSTIC_VALUE
   * @generated
   * @ordered
   */
  STEEL_ACOUSTIC(1, "STEEL_ACOUSTIC", "Acoustic"),

  /**
   * The '<em><b>JAZZ ELECTRIC</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #JAZZ_ELECTRIC_VALUE
   * @generated
   * @ordered
   */
  JAZZ_ELECTRIC(2, "JAZZ_ELECTRIC", "Jazz Electric"),

  /**
   * The '<em><b>CLEAN</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #CLEAN_VALUE
   * @generated
   * @ordered
   */
  CLEAN(3, "CLEAN", "Clean"),

  /**
   * The '<em><b>OVERDRIVE</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #OVERDRIVE_VALUE
   * @generated
   * @ordered
   */
  OVERDRIVE(4, "OVERDRIVE", "Overdrive"),

  /**
   * The '<em><b>DISTORTION</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #DISTORTION_VALUE
   * @generated
   * @ordered
   */
  DISTORTION(5, "DISTORTION", "Distortion"),

  /**
   * The '<em><b>NULL</b></em>' literal object.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see #NULL_VALUE
   * @generated
   * @ordered
   */
  NULL(6, "NULL", "standard");

  /**
   * The '<em><b>NYLON ACOUSTIC</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>NYLON ACOUSTIC</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #NYLON_ACOUSTIC
   * @model literal="Nylon"
   * @generated
   * @ordered
   */
  public static final int NYLON_ACOUSTIC_VALUE = 0;

  /**
   * The '<em><b>STEEL ACOUSTIC</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>STEEL ACOUSTIC</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #STEEL_ACOUSTIC
   * @model literal="Acoustic"
   * @generated
   * @ordered
   */
  public static final int STEEL_ACOUSTIC_VALUE = 1;

  /**
   * The '<em><b>JAZZ ELECTRIC</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>JAZZ ELECTRIC</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #JAZZ_ELECTRIC
   * @model literal="Jazz Electric"
   * @generated
   * @ordered
   */
  public static final int JAZZ_ELECTRIC_VALUE = 2;

  /**
   * The '<em><b>CLEAN</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>CLEAN</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #CLEAN
   * @model literal="Clean"
   * @generated
   * @ordered
   */
  public static final int CLEAN_VALUE = 3;

  /**
   * The '<em><b>OVERDRIVE</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>OVERDRIVE</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #OVERDRIVE
   * @model literal="Overdrive"
   * @generated
   * @ordered
   */
  public static final int OVERDRIVE_VALUE = 4;

  /**
   * The '<em><b>DISTORTION</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>DISTORTION</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #DISTORTION
   * @model literal="Distortion"
   * @generated
   * @ordered
   */
  public static final int DISTORTION_VALUE = 5;

  /**
   * The '<em><b>NULL</b></em>' literal value.
   * <!-- begin-user-doc -->
   * <p>
   * If the meaning of '<em><b>NULL</b></em>' literal object isn't clear,
   * there really should be more of a description here...
   * </p>
   * <!-- end-user-doc -->
   * @see #NULL
   * @model literal="standard"
   * @generated
   * @ordered
   */
  public static final int NULL_VALUE = 6;

  /**
   * An array of all the '<em><b>Guitar Sound</b></em>' enumerators.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private static final GuitarSound[] VALUES_ARRAY =
    new GuitarSound[]
    {
      NYLON_ACOUSTIC,
      STEEL_ACOUSTIC,
      JAZZ_ELECTRIC,
      CLEAN,
      OVERDRIVE,
      DISTORTION,
      NULL,
    };

  /**
   * A public read-only list of all the '<em><b>Guitar Sound</b></em>' enumerators.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public static final List<GuitarSound> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

  /**
   * Returns the '<em><b>Guitar Sound</b></em>' literal with the specified literal value.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public static GuitarSound get(String literal)
  {
    for (int i = 0; i < VALUES_ARRAY.length; ++i)
    {
      GuitarSound result = VALUES_ARRAY[i];
      if (result.toString().equals(literal))
      {
        return result;
      }
    }
    return null;
  }

  /**
   * Returns the '<em><b>Guitar Sound</b></em>' literal with the specified name.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public static GuitarSound getByName(String name)
  {
    for (int i = 0; i < VALUES_ARRAY.length; ++i)
    {
      GuitarSound result = VALUES_ARRAY[i];
      if (result.getName().equals(name))
      {
        return result;
      }
    }
    return null;
  }

  /**
   * Returns the '<em><b>Guitar Sound</b></em>' literal with the specified integer value.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public static GuitarSound get(int value)
  {
    switch (value)
    {
      case NYLON_ACOUSTIC_VALUE: return NYLON_ACOUSTIC;
      case STEEL_ACOUSTIC_VALUE: return STEEL_ACOUSTIC;
      case JAZZ_ELECTRIC_VALUE: return JAZZ_ELECTRIC;
      case CLEAN_VALUE: return CLEAN;
      case OVERDRIVE_VALUE: return OVERDRIVE;
      case DISTORTION_VALUE: return DISTORTION;
      case NULL_VALUE: return NULL;
    }
    return null;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private final int value;

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private final String name;

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private final String literal;

  /**
   * Only this class can construct instances.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  private GuitarSound(int value, String name, String literal)
  {
    this.value = value;
    this.name = name;
    this.literal = literal;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public int getValue()
  {
    return value;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public String getName()
  {
    return name;
  }

  /**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public String getLiteral()
  {
    return literal;
  }

  /**
   * Returns the literal value of the enumerator, which is its string representation.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  public String toString()
  {
    return literal;
  }
  
} //GuitarSound
